﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HYBYSoft.Company.Models.CompanyAndLinkmanRelation>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content">
        <div class="contact-label">
            <%: Html.LabelFor(mode=>mode.Address) %>：</div>
        <div class="contact-field">
            <%: Model.Address %></div>
        <div class="editor-empty">
        </div>
        <div class="contact-label">
            <%: Html.LabelFor(mode=>mode.City) %>：</div>
        <div class="contact-field">
            <%: Model.City %></div>
        <div class="editor-empty">
        </div>
        <div class="contact-label">
            <%: Html.LabelFor(mode=>mode.Postcode) %>：</div>
        <div class="contact-field">
            <%: Model.Postcode %></div>
        <div class="editor-empty">
        </div>
        <div class="contact-label">
            联系电话：</div>
        <div class="contact-field">
            <%:Model.TelFirst %><br />
            <%:Model.TelSecond %><br />
            <%:Model.TelThird %></div>
        <div class="editor-empty">
        </div>
        <div class="contact-label">
            <%: Html.LabelFor(mode=>mode.Fax) %>：</div>
        <div class="contact-field">
            <%:Model.Fax %></div>
        <div class="editor-empty">
        </div>
        <div class="contact-label">
            <%: Html.LabelFor(mode=>mode.E_mail) %>：</div>
        <div class="contact-field">
            <%: Model.E_mail %></div>
        <div class="editor-empty">
        </div>
        <br />
        <div>
            <% 
                var i = 1;
                foreach (var item in Model.Linkmen)
                {
                    if (i % 4 == 0)
                    {%>
            <div class="editor-empty">
            </div>
            <%}%>
            <div class="contact_list">
                <span>联系人：</span>
                <ul>
                    <li><div>姓名：</div>
                        <%: item.Name %></li>
                    <li><div>电话：</div>
                        <%: item.Tel %></li>
                    <li><div>E-mail：</div>
                        <%: item.E_mail %></li>
                    <li><div>MSN：</div>
                        <%: item.MSN %></li>
                    <li><div>QQ：</div>
                        <%: item.QQ %></li>
                </ul>
            </div>
            <% i = i + 1;
                } %>
        </div>
    </div>
</asp:Content>
